import { lazyComponent } from '@/utils'
export default [
  {
    path: '/setting',
    name: 'setting',
    sort: 7,
    meta: { title: '设置中心', icom: 'mall' },
    children: [
      {
        path: '/messageSet',
        name: 'messageSet',
        sort: 1,
        component: lazyComponent('setting/messageSet'),
        meta: { title: '消息设置' }
      },
      {
        path: '/approveSet',
        name: 'approveSet',
        sort: 2,
        component: lazyComponent('setting/approveSet'),
        meta: { title: '审批设置' }
      },
      {
        path: '/departmentManage',
        name: 'departmentManage',
        sort: 3,
        component: lazyComponent('setting/departmentManage'),
        meta: { title: '部门管理' }
      },
      {
        path: '/roleManage',
        name: 'roleManage',
        sort: 4,
        component: lazyComponent('setting/roleManage'),
        meta: { title: '角色管理' }
      },
      {
        path: '/employeesManage',
        name: 'employeesManage',
        sort: 5,
        component: lazyComponent('setting/employeesManage'),
        meta: { title: '员工管理' }
      },
      {
        path: '/postManage',
        name: 'postManage',
        sort: 7,
        component: lazyComponent('setting/postManage'),
        meta: { title: '岗位管理' }
      },
      {
        path: '/menuManage',
        name: `menuManage`,
        sort: 7,
        component: lazyComponent('setting/menuManage'),
        meta: {
          title: '菜单管理'
        }
      },
      {
        path: '/customerSet',
        name: `customerSet`,
        sort: 7,
        component: lazyComponent('setting/customerSet'),
        meta: {
          title: '客户设置'
        }
      },
      {
        path: '/complaintTypeSet',
        name: `complaintTypeSet`,
        sort: 7,
        component: lazyComponent('setting/complaintTypeSet'),
        meta: {
          title: '客诉设置'
        }
      },
      {
        path: '/downloadCenter',
        name: `downloadCenter`,
        sort: 8,
        component: lazyComponent('setting/downloadCenter'),
        meta: {
          title: '下载中心'
        }
      }
    ]
  }
]
// 固定拥有的路由
export const userRoute = [{
  path: '/userInfo',
  name: `userInfo`,
  sort: 6,
  component: lazyComponent('setting/userInfo'),
  meta: {
    title: '用户中心'
  },
  hidden: true
}]
